package com.life.controller.user;

import com.life.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

@Controller
@RequestMapping(value = "user")
public class IndexController {

    @Autowired
    private BannerService bannerService;

    @RequestMapping(value="index")
    public String index(HashMap<String, Object> map){
        map.put("bannerList",bannerService.getUserBanner());
        return "/wap/Index/index";
    }
}
